interface PersonClass {
  get(type: boolean): boolean
}

interface PersonClass2 {
  set(): void
  asd: string
}

class AA {
  name: string
  constructor() {
    this.name = '123'
  }
}

//  ts interface 定义类 使用关键字 implements   后面跟interface的名字多个用逗号隔开 
//  继承还是用extends
class PersonA extends AA implements PersonClass, PersonClass2 {
  asd: string
  constructor() {
    super()
    this.asd = '123'
  }
  get(type: boolean) {
    return type
  }
  set() {}
}

let persona = new PersonA() 
persona.get(true)